package net.zjitc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.zjitc.entity.Vo.RolePermissionVo;

import java.util.List;


@Data
@TableName("sp_role")
public class Role {
    @TableId(value = "role_id",type = IdType.AUTO)
    private Integer id;
    @TableField("role_name")
    private String roleName;
    private String ps_ids;
    private String ps_ca;
    @TableField("role_desc")
    private String roleDesc;
    //子分类
    @TableField(exist = false)
    List<RolePermissionVo> children;

    public void setPsIds(String ps_ids) {
        this.ps_ids = ps_ids;
    }

    public void setPsCa(String ps_ca) {
        this.ps_ca = ps_ca;
    }
}
